package com.hahaliu.hahaliu.service.comment;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hahaliu.hahaliu.pojo.entity.Comment;
import com.hahaliu.hahaliu.pojo.entity.CommentTree;

import java.util.List;

/**
* @author Liubuzhu
* @description 针对表【comment】的数据库操作Service
* @createDate 2024-10-20 14:33:46
*/
public interface CommentService extends IService<Comment> {
	List<Comment> getChildCommentsByRootId(Integer rootId, Integer vid, Long start, Long stop);
	List<Comment> getRootCommentsByVid(Integer vid, Long offset, Integer type);
	List<CommentTree> getCommentTreeByVid(Integer vid, Long offset, Integer type);
	CommentTree sendComment(Integer vid, Integer uid, Integer rootId, Integer parentId, Integer toUserId, String content);
	void deleteComment(Integer id, Integer uid, boolean isAdmin);
}
